package com.wzg.jetpack_blackbox.login.room.Converter;

import androidx.room.TypeConverter;

import com.blankj.utilcode.util.GsonUtils;
import com.wzg.jetpack_blackbox.login.room.TestBean2;
import com.wzg.jetpack_blackbox.login.room.UserWork;

public class TestBean2Converter {

    @TypeConverter
    public TestBean2 serialize(String value) {
        return GsonUtils.fromJson(value, TestBean2.class);
    }


    @TypeConverter
    public String deserialization(TestBean2 testBean2) {
        return GsonUtils.toJson(testBean2);
    }
}
